<template>
  <div>
      <comp :records="records" />

  </div>
</template>

<script>
import comp from '../message/comp.vue'
import {getMessage} from '../../request/api'

export default {
components:{
  comp
},
data(){
  return{   
      records:[], 
  }
},
created(){
     getMessage({
        current:"1",
      size:"10",
      type:1
    }).then(res=>{
        console.log(res);
        this.records=res.data.records
    })
},
}
</script>

<style lang='less'>

</style>